// $codepro.audit.disable com.instantiations.assist.eclipse.analysis.audit.rule.effectivejava.alwaysOverridetoString.alwaysOverrideToString
/**
 * Package domain
 */
package teamrocket.domain; // $codepro.audit.disable packagePrefixNamingConvention

import java.util.logging.Level;

import teamrocket.logging.TLogger;

/**
 * Represents a patient's information in the database
 * @author Stephen
 *
 * @version $Revision: 1.0 $
 */
public class PatientInformation {
	/**
	 * Field personalInformation.
	 */
	private PersonalInformation personalInformation;
	
	/**
	 * Field medicalInformation.
	 */
	private MedicalInformation medicalInformation;
	
	/**
	 * Constructs a patient information object in memory
	 * @param personalInformation
	 * @param medicalInformation
	 */
	public PatientInformation(PersonalInformation personalInformation,
			MedicalInformation medicalInformation) {
		this.personalInformation = personalInformation;
		this.medicalInformation = medicalInformation;
		TLogger.getInstance().getLogger().log(Level.INFO,
				"Creating new Patient Information.");
	}
	
	/**
	 * Method getPersonalInformation.
	 * @return PersonalInformation
	 */
	public PersonalInformation getPersonalInformation() {
		return personalInformation;
	}
	
	/**
	 * Method setPersonalInformation.
	 * @param personalInformation PersonalInformation
	 */
	public void setPersonalInformation(PersonalInformation personalInformation) {
		this.personalInformation = personalInformation;
	}
	
	/**
	 * Method getMedicalInformation.
	 * @return MedicalInformation
	 */
	public MedicalInformation getMedicalInformation() {
		return medicalInformation;
	}
	
	/**
	 * Method setMedicalInformation.
	 * @param medicalInformation MedicalInformation
	 */
	public void setMedicalInformation(MedicalInformation medicalInformation) {
		this.medicalInformation = medicalInformation;
	}
}
